package com.woniuxy.service.daily.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.dao.BreakpictureMapper;
import com.woniuxy.pojo.Breakpicture;
import com.woniuxy.service.daily.BreakpictureService;
@Service
public class BreakpictureServiceImpl implements BreakpictureService{

	@Autowired
	private BreakpictureMapper breakpictureMapper;
	
	public List<Breakpicture> selectBybrId(Integer brId) {
		// TODO Auto-generated method stub
		return breakpictureMapper.selectBybreakId(brId);
	}
	
	public void addPicture(Breakpicture breakpicture) {
		// TODO Auto-generated method stub
		System.out.println(breakpicture);
		breakpictureMapper.insertSelective(breakpicture);
	}
	
	public void deletePicture(Integer cpId) {
		breakpictureMapper.deleteByPrimaryKey(cpId);
	}

}
